<template>
  <!-- <router-link to="/home">登陆成功</router-link> -->
  <breadCrumb :data="data" separator="(❁´◡`❁)"></breadCrumb>
  <router-view></router-view>
</template>

<script setup>
import {ref,getCurrentInstance,onMounted} from 'vue'

let data = ref([])

onMounted(()=>{
  //获取组件实例
  let instance = getCurrentInstance()
  //获取app 全局添加的属性
  let $bus = instance.appContext.config.globalProperties.$bus
  $bus.$on('breadChange',input=>{
    // console.log(input)
    data.value = input
  })

})


</script>